<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-shaketicketAward-edit" th:object="${shaketicketAward}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否卡券0 是1 否：</label>
				<div class="col-sm-8">
					<input id="isCard" name="isCard" th:field="*{isCard}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">奖品名称：</label>
				<div class="col-sm-8">
					<input id="awardsName" name="awardsName" th:field="*{awardsName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发奖公司：</label>
				<div class="col-sm-8">
					<input id="owner" name="owner" th:field="*{owner}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">卡券id：</label>
				<div class="col-sm-8">
					<input id="cardId" name="cardId" th:field="*{cardId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">奖品图片：</label>
				<div class="col-sm-8">
					<input id="img" name="img" th:field="*{img}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">单位：</label>
				<div class="col-sm-8">
					<input id="unit" name="unit" th:field="*{unit}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公众号原始ID：</label>
				<div class="col-sm-8">
					<input id="jwid" name="jwid" th:field="*{jwid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">奖品描述：</label>
				<div class="col-sm-8">
					<input id="awardsDescribe" name="awardsDescribe" th:field="*{awardsDescribe}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "shaketicket/shaketicketAward";
		$("#form-shaketicketAward-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-shaketicketAward-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
